/*
** kbdread.c
**
** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
** Redistributed by permission.
*/

/* Somehow, <stdio.h> wasn't included- W. Jones. */
#include <stdio.h>
#include <pictor.h>

void main()
{
	int key;

	printf("KBDREAD, Version 1.51, Copyright (c) 1992-94 SoftCircuits\n");
	printf("Redistributed by permission.\n\n");

	printf("Press key to see keyboard code (Escape quits):\n");

	do {
		key = kbdread();
		printf("0x%04X\n",key);
	} while(key != ESCAPE_KEY);

} /* main */
